package ch08;

class ExceptionEx02 {
	public static void main(String args[]) {
		int number = 100;
		int result = 0;

		for(int i=0; i < 10; i++) {
			result = number / (int)(Math.random() * 10);
			System.out.println(result);
		}
	}
}
/*
12
25
Exception in thread "main" java.lang.ArithmeticException: / by zero
	at ch08.ExceptionEx02.main(ExceptionEx02.java:8)
*/